import { MockAdapter } from '@/mock/mock-adapter';
const mock = MockAdapter.getInstance();

import Mock from 'mockjs'
const Random = Mock.Random;

// 获取应用数据
mock.onGet('v7/set-upappmenu').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status, {
        name: 'db_appmenu1_appmenu',
        items:  [
            {
	id: 'D14E5C42-8F62-48D3-95D0-E0E864CD37B8',
	name: 'menuitem1',
	text: '关于系统',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '关于系统',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: 'bulb',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc25',
	resourcetag: '',
},
            {
	id: 'D63645A1-A3CB-490D-8F7A-81EF34C2770D',
	name: 'menuitem2',
	text: '清除缓存',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '清除缓存',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: 'sync',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc26',
	resourcetag: '',
},
            {
	id: '2C087461-2D16-48BE-8CEA-52DF92FF3E94',
	name: 'menuitem3',
	text: '退出登录',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '退出登录',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: 'log-out',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc27',
	resourcetag: '',
},
        ],
    }];
});

